package com.ccrfid.rmc6.repository.business.prison.door;

import com.ccrfid.rmc6.entity.business.prison.door.InOutRecordDetailEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

public interface InOutRecordDetailRepository extends Repository<InOutRecordDetailEntity, Long>,
        SearchableRepository<InOutRecordDetailEntity> {

    InOutRecordDetailEntity save(InOutRecordDetailEntity entity);

    boolean existsByRecordId(Long recordId);

    void deleteAllByRecordId(Long recordId);
}
